/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.Collections;
/*     */ import java.util.List;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.model.ModelBase;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
/*     */ import net.minecraft.client.renderer.entity.RenderLivingBase;
/*     */ import net.minecraft.client.renderer.entity.layers.LayerRenderer;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import net.minecraft.item.ItemStack;
/*     */ import net.minecraft.util.EnumHandSide;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ot
/*     */   implements LayerRenderer<EntityLivingBase>
/*     */ {
/*     */   public final RenderLivingBase<?> g;
/*     */   
/*     */   public ot(RenderLivingBase<?> renderLivingBase) {
/*  25 */     this.g = renderLivingBase;
/*     */   }
/*     */   
/*     */   public void func_177141_a(EntityLivingBase entityLivingBase, float f1, float f2, float f3, float f4, float f5, float f6, float f7) {
/*  29 */     boolean bool = (entityLivingBase.func_184591_cq() == EnumHandSide.RIGHT);
/*  30 */     ItemStack itemStack1 = bool ? entityLivingBase.func_184592_cb() : entityLivingBase.func_184614_ca();
/*  31 */     ItemStack itemStack2 = bool ? entityLivingBase.func_184614_ca() : entityLivingBase.func_184592_cb();
/*  32 */     if (!itemStack1.func_190926_b() || !itemStack2.func_190926_b()) {
/*  33 */       GlStateManager.func_179094_E();
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */       
/*  41 */       v(entityLivingBase, itemStack2, ItemCameraTransforms.TransformType.THIRD_PERSON_RIGHT_HAND, EnumHandSide.RIGHT);
/*  42 */       v(entityLivingBase, itemStack1, ItemCameraTransforms.TransformType.THIRD_PERSON_LEFT_HAND, EnumHandSide.LEFT);
/*  43 */       GlStateManager.func_179121_F();
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean translateToHand(String str) {
/*  87 */     ModelBase modelBase = this.g.func_177087_b();
/*  88 */     if (modelBase instanceof rm) {
/*  89 */       rm rm = (rm)modelBase;
/*     */       
/*  91 */       List<vl> list = new ArrayList();
/*  92 */       vl vl = rm.getBaseModel().getPiece(str);
/*  93 */       while (vl != null) {
/*  94 */         list.add(vl);
/*  95 */         vl = vl.l;
/*     */       } 
/*  97 */       Collections.reverse(list);
/*  98 */       for (vl vl1 : list) {
/*  99 */         vl1.applyTransAndRotations(0.0625F);
/*     */       }
/* 101 */       return (list.size() > 0);
/*     */     } 
/* 103 */     return false;
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean func_177142_b() {
/* 108 */     return false;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ot.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */